//
//  CigarettePriceCell.m
//  FloatClouds
//
//  Created by 黄威 on 16/9/6.
//  Copyright © 2016年 黄威. All rights reserved.
//

#import "CigarettePriceCell.h"

@implementation CigarettePriceCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];

    if (self) {
        self.label = [[UILabel alloc]init];
        self.label.text = @"请输入价格区间";
        [self addSubview:self.label];
        self.textFieldMin = [[UITextField alloc]init];
        self.textFieldMax = [[UITextField alloc]init];
        self.textFieldMax.borderStyle = UITextBorderStyleRoundedRect;
        self.textFieldMin.borderStyle = UITextBorderStyleRoundedRect;
        self.textFieldMin.placeholder = @"MIN";
        self.textFieldMax.placeholder = @"MAX";
        [self addSubview:self.textFieldMax];
        [self addSubview:self.textFieldMin];
        
    }

    return self;
}

- (void)layoutSubviews{

    self.label.frame = CGRectMake(self.bounds.size.width * 0.3, 0, self.bounds.size.width * 0.6, self.bounds.size.height * 0.2);
   
    
    self.textFieldMin.frame =  CGRectMake(self.bounds.size.width * 0.15 +3, self.bounds.size.height * 0.4 + 3, self.bounds.size.width * 0.3 - 6, self.bounds.size.height * 0.4 - 6);
    
    self.textFieldMax.frame =  CGRectMake(self.bounds.size.width * 0.6 +3, self.bounds.size.height * 0.4 + 3, self.bounds.size.width * 0.3 - 6, self.bounds.size.height * 0.4 - 6);
 

}



@end
